import request from '@/utils/request'

export function fetchVarietyList(params) {
  return request({
    url: '/api/variety/getList',
    method: 'post',
    params
  })
}

export function createVariety(params) {
  return request({
    url: '/api/variety/add',
    method: 'post',
    params
  })
}

export function updateVariety(data) {
  return request({
    url: '/api/variety/update',
    method: 'post',
    data
  })
}

export function deleteVariety(params) {
  return request({
    url: '/api/variety/delete',
    method: 'post',
    params
  })
}